<template>
    <div>
        <!-- 头部标签 -->
        <wgyback title='购物车'></wgyback>
        <!--  猜你喜欢部分-->
        <wgylike :guessLike='guessLike'></wgylike>
    </div>
</template>

<script>
import { getGoodsList } from '../../utils/api/Cart'

import wgyback from '@/components/Cart/wgy-back/wgy-back'
import wgylike from '@/components/Cart/wgy-like/wgy-like'
export default {
    name: 'index',
    data() {
        return {
            guessLike:[]
        };
    },
    created() {
        // 获取猜你喜欢的数据
        getGoodsList().then(res => {
            this.guessLike = res.data.splice(5,3)
        })
    },
    methods: {

    },
    //组件挂载
    components: {
        wgyback,
        wgylike,

    },
    //计算属性
    computed: {},
    //过滤器
    filters: {},
};
</script>

<style lang="scss" scoped>

</style>
